#include "Player.h"

Entity::Entity() {
	m_sprite = NULL;
}

Entity::~Entity(){
}

Sprite* Entity::getSprite() {
	return m_sprite;
}

void Entity::bindSprite(Sprite* sprite) {
	m_sprite = sprite;
	this->addChild(m_sprite);

	Size size = m_sprite->getContentSize();
	m_sprite->setPosition(Point(size.width*0.5f, size.height * 0.5f));
	setContentSize(size);
}

void Entity::updateTweenAction(float value, const std::string& key) {

}
